<?php
/* @var $this StkBannerController */
/* @var $model StkBanner */


$this->menu=array(
	array('label'=>'Lista Banner', 'url'=>array('list')),
	array('label'=>'Crear Banner', 'url'=>array('create')),
);

Yii::app()->clientScript->registerScript('search', "
$('.search-button').click(function(){
	$('.search-form').toggle();
	return false;
});
$('.search-form form').submit(function(){
	$('#Stk-banner-grid').yiiGridView('update', {
		data: $(this).serialize()
	});
	return false;
});
");
?>

<h1 class="tit-in">Gestionar  Banners</h1>


<div class="content-inner rounded">
	<?php echo CHtml::link('Búsqueda Avanzada','#',array('class'=>'search-button')); ?>
	<div class="search-form" style="display:none">
	<?php $this->renderPartial('_search',array(
		'model'=>$model,
	)); ?>
	</div><!-- search-form -->

	<?php $this->widget('zii.widgets.grid.CGridView', array(
		'id'=>'Stk-banner-grid',
		'dataProvider'=>$model->search(),
		'filter'=>$model,
		'columns'=>array(
			'Id',
			'Nombre',
			'Url',
			'Orden',
			'Estado',
			'Usuario_Id',
			array(
				'class'=>'CButtonColumn',
			),
		),
	)); ?>
</div>